import React from "react";
import SongPlayer from "./pages/wzy/SongPlayer";
import Tabs from "./pages/hm/detail";
import Songer from "./pages/hm/songer";
import Tab from "./pages/wwj/main";
import Tops from "./pages/hm/tops";
import { HashRouter as Router, Route, Switch } from "react-router-dom";
import Search from "./pages/cjs";

class App extends React.Component {
    render() {
        return (
            <div>
                <SongPlayer />
                <Router>
                    <Switch>
                        <Route path="/tops" component={Tops} />
                        <Route path="/songer" component={Songer} />
                        <Route path="/search" component={Search} />
                        <Route path="/detail" component={Tabs} />
                        <Route path="/" component={Tab} />
                    </Switch>
                </Router>
            </div>
        );
    }
}

export default App;
